package cn.mulanbay.admin.api.persistent.service;

import cn.mulanbay.persistent.entity.LoginLog;
import cn.mulanbay.persistent.mapper.LoginLogMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginLogService extends ServiceImpl<LoginLogMapper, LoginLog>  {

    @Autowired
    private LoginLogMapper loginLogMapper;

    /**
     * 获取登录日志
     * @param loginToken
     * @return
     */
    public LoginLog getLoginLog(String loginToken){
        return loginLogMapper.getLoginLog(loginToken);
    }

}
